package com.woniu.order.infra.model;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableId;

import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 评价表
 * </p>
 *
 * @author Lucas
 * @since 2022-11-26
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("lg_comment")
public class Comment implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 评价ID
     */
    @TableId(value = "comment_id", type = IdType.AUTO)
    private Integer commentId;

    /**
     * 订单ID
     */
    private Integer orderId;

    /**
     * 商品ID
     */
    private Integer productId;

    /**
     * 用户昵称
     */
    private String userNickname;

    /**
     * 评价人ID
     */
    private Integer userId;

    /**
     * 评价内容
     */
    private String content;

    /**
     * 评价时间
     */
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date commentTime;

    /**
     * 追评内容
     */
    private String additionalContent;

    /**
     * 追评时间
     */
    private Date additionalTime;

    /**
     * 评分（1 | 2 | 3 | 4 | 5）
     */
    private Integer score;

    /**
     * 评价状态（NORMAL 正常 | DELETE 删除）
     */
    private String state;

    /**
     * 评价图片
     */
    private String commentPicture;


}
